﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MINERP.DAL.CommonDAL
{
    public class ShopDAL:DALBase
    {
        public static Shop GetOneById(int shopId)
        {
            return DataEntites.Shop.FirstOrDefault(s => s.ShopId == shopId);
        }

        public static List<Shop> GetALLShop()
        {
            return DataEntites.Shop.OrderBy(s => s.shopName).ToList();
        }
    }
}
